import React, { Component } from 'react'
import '../assets/css/k-button.less'
export default class Kbutton extends Component {
  handleClick = (e) => {
    this.props.onClick && this.props.onClick(e)
  }
  render() {
    return (
      <div
        onClick={this.handleClick}
        className={['k-button'].concat(this.props.className).join(' ')}
      >
        {this.props.children}
      </div>
    )
  }
}
